﻿using System;
using System.Net;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Gmantis.Controls.DataGrid
{
    [StructLayout(LayoutKind.Sequential, Size = 1)]
    internal struct IntSumAggregator : IAggregator<int>
    {
        int IAggregator<int>.Zero()
        {
            return 0;
        }

        int IAggregator<int>.Sum(int left, int right)
        {
            return (left + right);
        }

        int IAggregator<int>.Compare(int x, int y)
        {
            return x.CompareTo(y);
        }
    }
}
